#ifndef MYSERVER_H
#define MYSERVER_H

#include <QMainWindow>
#include <QTcpServer>
#include <QTcpSocket>

QT_BEGIN_NAMESPACE
namespace Ui { class myserver; }
QT_END_NAMESPACE

class myserver : public QMainWindow
{
    Q_OBJECT

public:
    myserver(QWidget *parent = nullptr);
    ~myserver();
private slots:
    void new_connect();
    void receive_data();

private:
    Ui::myserver *ui;
    QTcpServer *server;
    QTcpSocket *client;
};
#endif // MYSERVER_H
